<?php
/**
 * Created by PhpStorm.
 * User: ADMIN
 * Date: 2021/5/23
 * Time: 19:15
 */
 namespace app\api\validate;

 use think\Validate;

 class Base extends Validate
 {
     /**
      * 手机号验证
      */
     protected function checkMobile($value, $rule, $data)
     {
         if($this->regex($value, "^1\d{10}$")) return true;
         return false;
     }

 }